<?php
$title = 'Thêm thành viên';
$button = '<button class="save button" name="btsave" value="btsave" type="submit"></button>';
$button .= '<button class="back button" name="btback" value="btback" type="submit"></button>';
$button .= '<button class="option button" name="btoption" value="btoption" type="submit"></button>';
?>
<form method="post" enctype="multipart/form-data">
	<div class="nav">
		<div class="navbutton">
		<?php echo $button;?>
	</div>
	</div>
	<div class="sheet">
		<div class="mana-title"><?php echo $title?></div>
		<div class="intro">
			<div class="form">
				<div class="small edit">
					<div class="element">
						<div class="eleft">Tên đăng nhập :</div>
						<div class="eright">
							<input type="text" name="username" value="">
						</div>
					</div>
					<div class="element">
						<div class="eleft">Mật khẩu :</div>
						<div class="eright">
							<input type="password" name="password" value="">
						</div>
					</div>
					<div class="element">
						<div class="eleft">Tên thật :</div>
						<div class="eright">
							<input type="text" name="realname" value="">
						</div>
					</div>
					<div class="element">
						<div class="eleft">Ngày sinh :</div>
						<div class="eright">
							<input type="text" name="birthday" value="">
						</div>
					</div>
					<div class="element">
						<div class="eleft">Giới tính :</div>
						<div class="eright">
							<label for="boy">Nam<input type="radio" name="gioitinh" value="0"></label>
							<label for="girl">Nữ<input type="radio" name="gioitinh" value="1"></label>
							<label for="not identified">Không xác định<input type="radio" name="gioitinh" value="2"></label>
						</div>
					</div>
					<div class="element">
						<div class="eleft">Địa chỉ :</div>
						<div class="eright">
							<input type="text" name="address" value="">
						</div>
					</div>
					<div class="element">
						<div class="eleft">Email :</div>
						<div class="eright">
							<input type="text" name="email" value="">
						</div>
					</div>
					<div class="element">
						<div class="eleft">Hình ảnh đại diện :</div>
						<div class="eright">
							<input type="file" name="image">
						</div>
					</div>
					<div class="element">
						<div class="eleft">Số điện thoại :</div>
						<div class="eright">
							<input type="text" name="phone" value="">
						</div>
					</div>
					<div class="element">
						<div class="eleft">Phân quyền :</div>
						<div class="eright">
							<?php if($this->utype == 1)echo '<label for="admin">Administrator<input id="admin" type="radio" value="1" name="type"/></label>';?> 
							<label for="2">Staff<input id="2" type="radio" value="2" name="type"/></label> 
							<label for="3">Moderator<input id="3" type="radio" value="3" name="type"/></label> 
							<label for="4">Member<input id="4" type="radio" value="4" name="type"/></label>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</form>